package service.impl;

import dao.Review_recordDao;
import dao.impl.Review_recordDaoImpl;
import entry.Review_record;
import entry.Ticket_open;
import service.Review_recordService;

import java.util.ArrayList;
@SuppressWarnings("all")
public class Review_recordServiceImpl implements Review_recordService {

    private Review_recordDao review_recordDao=new Review_recordDaoImpl();




    /**
     * 向审核记录表中增加审核信息
     * @param rd 审核记录实体类对象
     * 添加成功返回真（需要if判断）
     */
    @Override
    public boolean insertReview_record(Review_record rd) {
        return review_recordDao.insertReview_record(rd);
    }


    /**
     * 更改审核记录表中的信息
     * @param rd
     * @return
     *
     */
    @Override
    public boolean updateReview_record(Review_record rd) {
        return review_recordDao.updateReview_record(rd);
    }


    @Override
    public ArrayList<Ticket_open> queryDetails(String no) {
        return review_recordDao.queryDetails(no);
    }


    @Override
    public ArrayList<Ticket_open> queryByStatues() {
        return review_recordDao.queryByStatues();
    }
}
